package com.xqboss.apps.constant;

/**
 * @author Trent
 * @date 2023/9/7
 */
final public class RedisKey {
    // 一天时间（秒数）
    public static final int REDIS_ONE_DAY_SECONDS = 86400;

    // 用户箱子订单缓存
    public static final String KEY_USER_BOX_ORDER = "order:user-box:";

    // 实人认证请求令牌
    public static final String KEY_ALI_FACE_TOKEN = "ali-face:";

    // 缓存箱子信息
    public static final String KEY_CACHE_BOX = "cache:box:";

    // 缓存支付类型的账号信息
    public static final String KEY_CACHE_PAY_ACCOUNT_BY_TYPE = "cache:pay-account-type:";
    // 缓存支付APPID
//    public static final String KEY_CACHE_PAY_ACCOUNT_APPID_LIST_BY_TYPE = "cache:pay-account-type-appid:";
    // 缓存支付账号信息
    public static final String KEY_CACHE_PAY_ACCOUNT_BY_ID = "cache:pay-account-id:";
    // 缓存箱子优先购
    public static final String KEY_CACHE_BOX_PRIORITY_BUY_BY_BOX_USER = "cache:box-priority-buy:";
    // 缓存用户订单取消次数
    public static final String KEY_ORDER_CANCEL_COUNT_BY_USER = "order:cancel-count:";
    // 记录用户当日转卖次数
    public static final String KEY_USER_ADD_MARKET_COUNT = "market:user-add-count:";

    // 用户未读礼物数
    public static final String KEY_USER_UNREAD_GIFT = "unread:gift:";
    // 记录用户当日转卖扳手次数
    public static final String KEY_USER_ADD_MARKET_WRENCH_COUNT = "market:user-add-wrench_count";
    // 记录用户当日转卖力豆次数
    public static final String KEY_USER_ADD_MARKET_LIDOU_COUNT = "market:user-add-lidou_count";
    // 记录空投顺序是随机还是顺序（只针对装配、藏品）
    public static final String KEY_AIRDROP_ID = "airdrop:id:";

    // 公会权益配置缓存
    public static final String KEY_USER_GUILD_EQUITY_CONF = "guild:equity-conf:identityId:";
    public static final String KEY_USER_GUILD_EQUITY_CONFS = "guild:equity-conf";


    // 市场查询，缓存失效，放一个用户去数据查询然后更新缓存
    public static final String KEY_MARKET_SETIFPRESENT = "market:setIfPresent-market";

    // 市场缓存，不同分类的类型
    public static final String KEY_MARKET_CATEGORY_TYPE = "market:category-type:";


    // 运动场
    // 是否在空投结算验证 1-空投结算中
    public static final String SPORT_IN_AIRDROP = "sport:in-airdrop";

    // 装备加油手环上锁
    public static final String SPORT_POOL_LOCK = "sport:pool-lock:";

    // 运动场装备手环空投力豆
    public static final String SPORT_AIRDROP_MIX = "sport:airdrop-min-lock:";
    // 运动场队员助力空投力豆
    public static final String SPORT_AIRDROP_TEAM = "sport:airdrop-team-lock:";
    // 构建运动场空投力豆
    public static final String SPORT_AIRDROP_BUILD = "sport:airdrop-build-lock:";
    // 投放装备配置缓存
    public static final String SPORT_MIX_CONFIG = "sport:mix_config";

}
